﻿using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using EyFramework.Common;
using EyFramework.ThirdPart.RedisUtil;
using Ncov2019.Core.Service;
using Ncov2019.Entity;

namespace UnitTestProject1.Common
{
    [TestClass]
    public class RedisHelperTest
    {
        [TestMethod]
        public void TestSubscribe()
        {
            //初始化配置文件
            Globals.appConfigure = new AppConfigure();
            RedisHelper.Subscribe("Test", (string message) =>
            {
                Console.WriteLine(message);
            });
            RedisHelper.Subscribe("Test2", (string message) =>
            {
                Console.WriteLine(message);
            });
            RedisHelper.Subscribe("Test3", (string message) =>
            {
                Console.WriteLine(message);
            });
            Console.ReadLine();
        }

        [TestMethod]
        public void TestNcovOrder()
        {
        }
    }
}